<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>


<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal"
            aria-hidden="true">&times;
    </button>
    <h4 class="modal-title" id="myModalLabel2">班级名称</h4>
</div>
<div class="modal-body">
    <!--弹出框样式-->
    <style>
        ul, li {
            list-style: none;
        }
    </style>
    <!--弹出框样式end-->
    <ul>
        <input type="text" class="hidden" name="id" value="${thisGrade.id}">
        <input type="text" class="hidden" name="token" value="${token}">

        <li class="row">
            <div class="col-sm-2" style="padding: 0.2em 0">*班级名称：</div>
            <div>
                <input type="text" name="name" id="name" class="col-sm-8 col-sm-8-1" value="${thisGrade.name}"
                       placeholder="请输入班级名称" style="padding: 0.2em 0.5em;">
            </div>
        </li>

        <li class="row">
            <div class="col-sm-2" style="padding: 0.2em 0">校区：</div>
            <select name="campusId" >
                <c:forEach items="${campuses}" var="c">
                    <option value="${c.id }" ${thisGrade.campusId eq c.id ? "selected=selected":""} >${c.name }</option>
                </c:forEach>
            </select>
        </li>

        <li class="row">
            <div class="col-sm-2" style="padding: 0.2em 0">备注：</div>
            <div>
                <input type="text" name="note" class="col-sm-8 col-sm-8-1" value="${thisGrade.note}"
                       placeholder="请输入备注" style="padding: 0.2em 0.5em;">
            </div>
        </li>
    </ul>

</div>
<div class="modal-footer">
    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
    </button>
    <button type="button" class="btn btn-primary" onclick="doSave('grade')">
        保存
    </button>
</div>

</script>
